package com.ruoyi.hxf.service;

import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.hxf.domain.Comment;
import com.ruoyi.hxf.domain.Topic;

/**
 * 评论管理Service接口
 *
 * @author hxf
 * @date 2023-1-22
 */
public interface ICommentService {
    /**
     * 查询评论列表
     * @param comment
     * @param pageQuery
     * @return
     */
    TableDataInfo<Comment> selectPageCommentList(Comment comment, PageQuery pageQuery);

    int insertComment(Comment comment);

    Comment select(Comment comment);

    boolean selectCommentLike(String commentId, String userId, String type);

    void updateCommentLike(String commentId, String userId, String status, String type);

    void insertCommentLike(String commentId, String userId, String status, String type);

    String selectCollectionByUserIdAndCommentId(Long userId, Long commentId,String type);

    Comment queryById(String commentId);

    int updateByComment(Comment comment);
}
